/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getList = (params) => axios.post(`${SERVER.RETAIL}/inventoryManage/listRecordMajor`, params)
// 订单类型细分
export const getTypesub = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiOrderTypeSub/list`, params)
// 导出
export const excelList = (params) => axios.post(`${SERVER.RETAIL}/inventoryManage/exportMajor`, params, { responseType: 'blob' })
// 获取所有资金类型
export const gettmFiAccountType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)
// 车辆配置五级选择
export const vehicleConfiguration = (id, params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/productInfo/productTreeNew`, { params: { type: id, level: 6, ...params } });
// 获取工厂仓库
export const gettmVsWarehouse= (params) => axios.post(`${SERVER.WHOLESALES}/tmVsWarehouse/list`, params)

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
